/*
 * @Descripttion: 核酸宝项目前端
 * @version: 
 * @Author: 杜宇轩
 * @Date: 2022-05-22 05:23:33
 * @LastEditors: 杜宇轩
 * @LastEditTime: 2022-05-22 06:23:19
 */
import Vue from 'vue';

/**
 * 医护人员查看检测结果
 * request: {}
 */
 export const doctorCheckResult = () => {
  return Vue.$http({
    url: '/natms/reagent/Allresult',
    method: 'get'
  });
};

/**
 * 医护人员单独上传检测结果
 * request: {
 *  reagentBottleId: "", // 试剂瓶编号
 *  samplingTime: "", // 检测时间
 *  institution: "", // 检测机构
 *  result: "" // 检测结果
 * }
 */
 export const doctorAddOneResult = (data) => {
  return Vue.$http({
    url: '/natms/result/doctorSend/one',
    method: 'post',
    data: {
      reagentBottleId: data.reagentBottleId,
      samplingTime: data.samplingTime,
      institution: data.institution,
      result: data.result
    }
  });
};

/**
 * 医护人员批量上传检测结果
 * request: [
 *  {
 *    reagentBottleId: "", // 试剂瓶编号
 *    samplingTime: "", // 检测时间
 *    institution: "", // 检测机构
 *    result: "" // 检测结果
 *  }
 * ]
 */
 export const doctorAddBatchResult = (data) => {
  return Vue.$http({
    url: '/natms/result/doctorSend/batch',
    method: 'post',
    data: data
  });
};
